<!DOCTYPE html>

<html>
	<head>
		<link rel="stylesheet" href="../../../themes/themeroller/maemo5-theme/ui.all.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="../../../themes/nokia/ext-theme/maemo5/800x480/custom.css" type="text/css" media="screen" />
		
		<script src="../../../lib/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
		
		<script src="../../../src/defaults.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../src/core.js" type="text/javascript" charset="utf-8"></script>

		<style type="text/css" media="screen">
			body {
				font-size: 14px;
				padding: 15px;
				font-family: "Trebuchet MS", "Helvetica", "Arial",  "Verdana", "sans-serif";
			}

			p {
				margin: 30px 10px;
			}

		</style>

	</head>

	<body>

		<br/><br/><br/><br/>

		<a href="#" id="link01">Link 01</a>

		<br /><br />

		<a href="#" id="link02">External web page</a>

		<br /><br />

		<script type="text/javascript" charset="utf-8">
		
			var init = function() {
			
				window.link1 = new Nokia.TextLink({
					element: '#link01',
					label: 'Callback',

					style: {
						color: 'red',
						fontSize: '15px'
					},

					create: function() {
						console.log("TextLink: Create");
					},
					click: function() {
						alert('TextLink: Click');
					}
				});

				window.link2 = new Nokia.TextLink({
					element: '#link02',
					url: 'http://www.forum.nokia.com/',
					label: '<b>Testing</b> Label.',

					style: {
						color: 'green',
						fontSize: '25px'
					},

					click: function() {
						console.log("TextLink: Click");
					}
				});
				
				/*
				 * Hide splash when its all done.
				*/
				
				Nokia.hideSplash();

			};
			
			/*
			 * Show splash while loading components.
			*/
				
			Nokia.showSplash('<span>loading</span>');
			
			Nokia.use('textlink', init);

		</script>

	</body>
</html>